package com.hxkcloud.patient.aerotel.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;


public class TimerBroadcastReceiver extends BroadcastReceiver {
    public TimerBroadcastReceiver() {
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        //取消分钟检查机制
        /*if (intent.getAction().equals(Intent.ACTION_TIME_TICK)) {

            boolean running = false;

            ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
            for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {
                if (service.service.getClassName().contains("AerotelECGReceiveService")) {
                    running = true;
                    break;
                }
            }
            if (!running) {
                Intent i = new Intent(context, AerotelECGReceiveService.class);
                context.startService(i);
            }
        }*/
    }
}
